<!DOCTYPE html>
<html lang="zh">
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/header :: header(~{::title},~{::link},~{})">

    <title>用户列表</title>
    <link rel="icon" th:href="@{/assets/img/lcxm.ico}" type="image/ico">
    <link rel="stylesheet" th:href="@{/assets/css/common.css}">
</head>
<body class="body">
<!--导航-->
<div class="container-fluid">

    <div class="row row-nocol">


        <form class="form-inline lookup" role="form" th:action="@{/user/list/2}" method="post">

           <!-- <div class="form-group" style="margin-left: 5px">
                <label class="control-label sr-only" for="lookup-userCode">工号</label>
                <div class="input-group">
                    <input class="form-control input-sm" id="lookup-userCode" name="userCode" type="text"
                           th:value="${lookup?.userCode}" placeholder="工号">
                </div>
            </div>
            <div class="form-group" style="margin-left: 5px">
                <label class="control-label sr-only" for="lookup-userName">用户名</label>
                <div class="input-group">
                    <input class="form-control input-sm" id="lookup-userName" name="userName" type="text"
                           th:value="${lookup?.userName}" placeholder="用户名">
                </div>
            </div>

            <div class="form-group" style="margin-left: 5px">
                <label class="control-label sr-only" for="lookup-groupId">小组</label>
                <div class="input-group">
                    <select class="form-control input-sm" id="lookup-groupId" name="groupId"
                            th:attr="data-value=${lookup?.groupId}" data-url="group/all">
                        <option value="">&#45;&#45;请选择小组&#45;&#45;</option>
                    </select>
                </div>
            </div>

            <div class="form-group pull-right">
                <button type="submit" class="btn btn-primary btn-sm">
                    <i class="glyphicon glyphicon-search"></i> 查询
                </button>
                <button type="button" class="btn btn-info btn-sm reset">
                    <i class="glyphicon glyphicon-refresh"></i> 重置
                </button>
            </div>
-->
        </form>
        <hr/>
        <!-- 操作信息提示的地方 -->
        <div th:if="${remind}" class="alert alert-${ remind.level  }"
             th:classappend="'alert-' + ${remind.level}">
            <button data-dismiss="alert" class="close" type="button">
                <i class="glyphicon glyphicon-remove"></i>
            </button>
            <span th:remove="tag" th:utext="${ remind.message }"></span>
        </div>
        <!--列表栏-->
        <form class="nocol">

            <table class="table table-striped  table-hover table-bordered stable">
                <thead>
                <tr class="text-center">
                    <th><input type="checkbox" data-member="ids"></th>
                    <th>工号</th>
                    <th>用户名</th>
                    <th>所属小组</th>
                </tr>
                </thead>
                <tbody align="center">
                <tr th:each="cur:${datas}">
                    <td class="center"><input type="checkbox"
                                              th:value="${cur.id}" name="ids" data-leader="ids"></td>
                    <td th:text="${cur.userCode}" class="text-info">userCode</td>
                    <td th:text="${cur.userName}">userName</td>
                    <td th:text="${cur.groupName}">usedTime</td>
                </tr>
                <!-- </c:forEach> -->
                </tbody>
            </table>

        </form>
        <!--页码相关-->
    </div>


</div>

<!-- 引入通用js-->
<th:block th:replace="common/footer :: connomjs"></th:block>

<script>


</script>
</body>
</html>